﻿@model IEnumerable<MVC4_Test.Models.PageOne>


<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Title)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Text)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Text)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.PageOneId }) |
            @Html.ActionLink("Details", "Details", new { id=item.PageOneId }) |
            @Ajax.ActionLink("Delete", "Delete", "PageOne", new { id = item.PageOneId }, new AjaxOptions { UpdateTargetId = "one" });
        </td>
    </tr>
}

</table>